import axios from "../../model/axios";
import api from "../../model/api";
export const professionList = (params) => axios({
    method: "get",
    url: api.job.professionlist,
    params,
    headers: {
        "Authorization": window.localStorage.getItem("token")//请求头获取token
    }
});
// 招聘列表
export const jobList=(params)=>axios({
    method:"get",
    url:api.job.joblist,
    params,
    headers:{
        "Authorization":window.localStorage.getItem("token")//请求头获取token
    }
})
// 招聘详情
export const jobDetail=(id)=>axios({
    method:"get",
    url:api.job.jobdetail+ "/" + id,
    params:{id}
})
// 投递简历
// export const deliver=(companyId,postId,postName,satrTime)=>axios({
//     method:"post",
//     url:api.job.deliver+"/"+companyId+postId+postName+satrTime,
//     // data,
//     headers:{
//         "Authorization":window.localStorage.getItem("token")//请求头获取token
//     }
// })
// 投递简历
export const deliver=(data)=>axios({
    method:"post",
    url:api.job.deliver,
    data,
    headers:{
        "Authorization":window.localStorage.getItem("token")//请求头获取token
    }
})
export const deliverList=(params)=>axios({
    method:"get",
    url:api.job.deliverlist,
    params,
    headers:{
        "Authorization":window.localStorage.getItem("token")//请求头获取token
    }
})
